@if($user)
<li class="dropdown dropdown-user nav-item">
    <a class="dropdown-toggle nav-link dropdown-user-link" href="#" data-toggle="dropdown" style="padding-right: 0px !important">
        <div class="user-nav d-sm-flex">
            <span class="user-name text-bold-600">{{ $user->name }}</span>
            <span class="user-status">
                @if ($user->dwmc)
                {{ $user->dwmc }}
                @else
                {{ $user->ddb_dwmc }}
                @endif
            </span>
        </div>
    </a>
    <div class="dropdown-menu dropdown-menu-right">
        <a class="dropdown-item" href="javascript:void(0)" onclick="window.location.href='{{ admin_route('logout') }}'">
            <i class="feather icon-power"></i> {{ trans('admin.logout') }}
        </a>
    </div>
</li>
@endif